#ifndef TAILWINDCSSDOC_H
#define TAILWINDCSSDOC_H

#include "wiki.h"

class TailwindcssDoc : public Wiki
{
public:
    typedef std::pair<QString, QString>  KV;
    TailwindcssDoc();

private:
    QList<QString> m_categories;
    QMap<QString, QList<KV>> m_category_pairs;

    // Wiki interface
public:
    virtual QString name() override;
    virtual QString prefix() override;

    WIKI_AUTOLOAD
    WIKI_USE_URL

    virtual QStringList searching(const QString &text) override;
    virtual QString content(const QString &text) override;
    virtual bool interactive(const QString &text) override;
    virtual bool interactive_running() override;
    virtual void interactive_restore() override;

private:
    QString m_category;
};

#endif // TAILWINDCSSDOC_H
